package cn.rwklyd.BookKeeping.pojo.vo;

import cn.rwklyd.BookKeeping.pojo.Category;
import cn.rwklyd.BookKeeping.pojo.Platform;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Schema(description = "交易记录视图对象")
public class TransactionVO {
    @Schema(description = "交易记录ID")
    private Long id;
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "分类ID")
    private Long categoryId;
    
    @Schema(description = "平台ID")
    private Long platformId;
    
    @Schema(description = "交易金额")
    private BigDecimal amount;
    
    @Schema(description = "交易日期")
    private LocalDateTime transactionDate;
    
    @Schema(description = "备注")
    private String remark;

    @Schema(description = "消费凭证照片URL")
    private String receiptImage;
    
    @Schema(description = "是否OCR自动识别生成：0-否，1-是")
    private Integer isOcrGenerated;
    
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    
    @Schema(description = "是否删除：0-未删除，1-已删除")
    private Integer isDeleted;
    
    // 关联信息
    @Schema(description = "分类信息")
    private Category category;
    
    @Schema(description = "平台信息")
    private Platform platform;
} 